package com.ruoyi.reminder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.reminder.mapper.HealthReminderMapper;
import com.ruoyi.reminder.domain.HealthReminder;
import com.ruoyi.reminder.service.IHealthReminderService;

/**
 * 健康提醒Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class HealthReminderServiceImpl implements IHealthReminderService 
{
    @Autowired
    private HealthReminderMapper healthReminderMapper;

    /**
     * 查询健康提醒
     * 
     * @param reminderId 健康提醒主键
     * @return 健康提醒
     */
    @Override
    public HealthReminder selectHealthReminderByReminderId(Long reminderId)
    {
        return healthReminderMapper.selectHealthReminderByReminderId(reminderId);
    }

    /**
     * 查询健康提醒列表
     * 
     * @param healthReminder 健康提醒
     * @return 健康提醒
     */
    @Override
    public List<HealthReminder> selectHealthReminderList(HealthReminder healthReminder)
    {
        return healthReminderMapper.selectHealthReminderList(healthReminder);
    }

    /**
     * 新增健康提醒
     * 
     * @param healthReminder 健康提醒
     * @return 结果
     */
    @Override
    public int insertHealthReminder(HealthReminder healthReminder)
    {
        return healthReminderMapper.insertHealthReminder(healthReminder);
    }

    /**
     * 修改健康提醒
     * 
     * @param healthReminder 健康提醒
     * @return 结果
     */
    @Override
    public int updateHealthReminder(HealthReminder healthReminder)
    {
        return healthReminderMapper.updateHealthReminder(healthReminder);
    }

    /**
     * 批量删除健康提醒
     * 
     * @param reminderIds 需要删除的健康提醒主键
     * @return 结果
     */
    @Override
    public int deleteHealthReminderByReminderIds(Long[] reminderIds)
    {
        return healthReminderMapper.deleteHealthReminderByReminderIds(reminderIds);
    }

    /**
     * 删除健康提醒信息
     * 
     * @param reminderId 健康提醒主键
     * @return 结果
     */
    @Override
    public int deleteHealthReminderByReminderId(Long reminderId)
    {
        return healthReminderMapper.deleteHealthReminderByReminderId(reminderId);
    }
}
